.bg-body {
    background-color: #f1eeee;
}

/***公共头部*******/
.header {
    display         : flex;
    justify-content : space-between;
    align-items     : center;
    color           : #fff;
    padding         : 24px 9px 3px 16px;
    background-color: #DE3032;
    /* 标准的语法 */

    &-left {
        padding-bottom: 12px;
        text-align    : center;
        font-size     : 12px;
        display       : flex;

        .back {
            margin-left: -16px;
            padding    : 16px 0 0 16px;
        }

        .i-left {
            align-self  : center;
            display     : inline-block;
            width       : 12px;
            height      : 12px;
            border-top  : 2px solid #666;
            border-right: 2px solid #666;
            transform   : rotate(225deg);
            margin-right: 30px;
        }

        .i-left-white {
            align-self  : center;
            display     : inline-block;
            width       : 12px;
            height      : 12px;
            border-top  : 2px solid #fff;
            border-right: 2px solid #fff;
            transform   : rotate(225deg);
        }

        .i-mine {
            background-image: url("../images/i-mine.png");
            background-size : 100% 100%;
            display         : inline-block;
            width           : 24px;
            height          : 24px;
        }

        .i-sall {
            background-image: url("../images/i-sall.png");
            background-size : 100% 100%;
            display         : inline-block;
            width           : 24px;
            height          : 24px;
        }

    }

    &-middle {
        // width: 60%;
        align-self: center;
        font-size : 18px;
    }

    &-right {
        // width: 20%;
        font-size    : 12px;
        border-radius: 16px;
        padding      : 0 12px;
        display      : flex;

        .i-sall {
            background-image: url("../images/i-sall.png");
            background-size : 100% 100%;
            display         : inline-block;
            width           : 24px;
            height          : 24px;
        }

        .i-mine {
            background-image: url("../images/i-mine.png");
            background-size : 100% 100%;
            display         : inline-block;
            width           : 24px;
            height          : 24px;
        }

        .btn-order {
            background-color: #CF0F0F;
            font-size       : 12px;
            color           : #fff;
            border-radius   : 3px;
            margin-right    : 2em;
            border          : solid 1px #CF0F0F;
            align-self      : center;
        }

        .btn-search {
            background-color: #f8f6f6;
            border          : none;
            color           : #000;
            font-size       : 16px;
        }

        .btn-save-addr {
            border          : none;
            background-color: #f8f6f6;
            color           : #DE3032;
        }
    }

    .font-black {
        color         : #333;
        font-size     : 18px;
        // margin-left: 16px;
    }
}

/***商品筛选组件*******/
.filter {
    display: flex;
    background-color: #fff;
    color: #333;
    margin: 16px 8px 0;
    border-radius: 5px;
    text-align:center;
    padding: 8px 8px 5px;
    font-size       :13px;
    &-item{
      width:24%;
      display: flex;
      justify-content:center;
      .text{
        color: #666;
        padding-bottom: 4px;
        border-bottom: 2px solid #fff;
      }
      .active {
        color: #fb5500;
        border-bottom: 2px solid #fb5500;
      }
      .arrow {
        display: flex;
        justify-content: flex-start;
        flex-direction: column;
        padding-top: 3px;
        margin-left: 2px;
        .i-arrow-up {
          display: inline-block;
          width: 0;
          height: 0;
          vertical-align: middle;
          border-right: 3px solid transparent;
          border-left: 3px solid transparent;
          border-bottom: 3px solid;
        }
        .i-arrow-down{
          display: inline-block;
          width: 0;
          height: 0;
          margin-top: 3px;
          vertical-align: middle;
          border-top: 3px solid;
          border-right: 3px solid transparent;
          border-left: 3px solid transparent;
        }
        .arrow-active {
          color:#fb5500;
        }
      }
      .i-single {
        margin-top: 2px;
        margin-right: 5px;
        background-image: url("../images/i-single.png");
        background-size : 100% 100%;
        display         : inline-block;
        width           : 14px;
        height          : 14px;
      }
      .i-double {
        margin-top: 2px;
        margin-right: 5px;
        background-image: url("../images/i-double.png");
        background-size : 100% 100%;
        display         : inline-block;
        width           : 14px;
        height          : 14px;
      }
      .i-filter {
        margin-top: 2px;
        margin-left: 1px;
        margin-right: 5px;
        background-image: url("../images/i-filter.png");
        background-size : 100% 100%;
        display         : inline-block;
        width           : 12px;
        height          : 14px;
      }
    }

    .filter-panel {
        background-color: #fff;
        &__title {
            text-align: left;
            padding: 48px 16px 24px;
            background-color: #f0f0f0;
        }
        &__content {
            .filter-price {
                text-align: left;
                border-bottom: 1px solid #f0f0f0;
                padding-bottom: 5px;
                &__title {
                    font-size: 14px;
                    color: #666;
                    padding: 8px 16px 0;
                }
                &__condition {
                    padding:  8px 16px 0;
                    display:flex;
                    justify-content: flex-start;
                    align-items: center;
                    .inpt-price{
                        width: 100px;
                        color: #666;
                        font-size: 12px;
                        background-color:#f0f0f0;
                        border: none;
                        padding: 5px 2px;
                        text-align:center;
                        border-radius: 10px;
                    }
                    .to {
                        color: #666;
                        padding: 0 5px;
                    }
                    
                }
                &__tab {
                    display: flex;
                    justify-content: space-around;
                    align-items: center;
                    margin-top: 8px;
                    padding: 0 16px;
                    &__item {
                        width: 20%;
                        background-color: #f0f0f0;
                        border-radius: 10px;
                        font-size: 12px;
                        color: #666;
                        text-align:center;
                        padding: 2px 5px;
                    }
                    .active {
                        color           : #fff;
                        background-color: #ff9400;
                    }
                }
            }
            .filter-category {
                text-align: left;
                padding-bottom: 5px;
                &__title {
                    font-size: 14px;
                    color: #666;
                    padding: 8px 16px 0;
                }
                .category-panel {
                    padding: 8px 16px 48px;
                    &__item {
                        float: left;
                        width: 80px;
                        padding:3px 0;
                        font-size: 12px;
                        color           : #666;
                        text-align: center;
                        border-radius: 3px;
                        background-color: #f0f0f0;
                        margin-left: 5px;
                        margin-top: 8px;
                    }
                    .active {
                        color           : #fff;
                        background-color: #ff9400;
                    }
                    .clear {
                        clear: both;
                    }
                }

            }
            
        }
        &__action{
            text-align: right;
            padding-right: 16px;
            .btn-reset {
                background-color: #ff9400;
                border: none;
                border-radius:  16px 0 0 16px;
                width: 72px;
                padding: 5px 0;
                color: #fff;
            }
            .btn-filter {
                background-color: #ff5000;
                width: 72px;
                border: none;
                border-radius: 0 16px 16px 0;
                padding: 5px 0;
                color: #fff;
            }
        }
    }
    
  }
/***底部导*******/
.footer-bar{
    position:fixed;
    width:100%;
    background-color: #fff;
    border-top: 1px solid #f1eeee;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    &__item {
        width: 50%;
        padding: 8px 0 5px;
        text-align:center;
        .home-active {
            background-image: url("../images/home-active.png");
            background-size : 100% 100%;
            display         : inline-block;
            width           : 20px;
            height          : 20px;
        }
        .home-normal {
            background-image: url("../images/home-normal.png");
            background-size : 100% 100%;
            display         : inline-block;
            width           : 20px;
            height          : 20px;
        }

        .user-active {
            background-image: url("../images/user-active.png");
            background-size : 100% 100%;
            display         : inline-block;
            width           : 20px;
            height          : 20px;
        }
        .user-normal {
            background-image: url("../images/user-normal.png");
            background-size : 100% 100%;
            display         : inline-block;
            width           : 20px;
            height          : 20px;
        }
        .text-active{
            color: #C20000;
        } 
        .text-normal{
            color: #333;
        } 
    }
}

.bg-white {
    background-color: #fff
}

.bg-red {
    background-color: #ef0000;
}

.bg-grey {
    background-color: #f8f6f6;
    border-bottom   : 1px solid #dcdbdb;
}

.m-l-8 {
    margin-left: 8px;
}
.m-l-12 {
    margin-left: -12px;
}

.m-t-12 {
    margin-top: 12px;
}

.m-t-d40 {
    margin-top: -60px;
}

.border-l {
    border-left: 1px solid #D3D3D3;
}

.border-r {
    border-right: 1px solid #D3D3D3;
}

.show-box {
    position                  : fixed;
    top                       : 50%;
    left                      : 50%;
    max-height                : 100%;
    overflow-y                : auto;
    background-color          : #fff;
    transition                : .3s ease-out;
    -webkit-overflow-scrolling: touch;
    -webkit-transform         : translate3d(-50%, -50%, 0);
    transform                 : translate3d(-50%, -50%, 0);
    border-radius             : .5em;
    width                     : 85%;
    z-index                   : 2000;

    .binding {
        background-color: #fff;
        width           : 100%;
        // height: 240px;
        font-size       : 16px;
        align-items     : center;

        &-header {
            display        : flex;
            justify-content: flex-end;
            align-items    : center;
            // padding        : 0 16px;

            .space {
                width: 10%
            }

            .title {
                width      : 90%;
                color      : #333;
                font-size  : 20px;
                padding-top: 19px;
                text-align : center;
            }

            .i-close {
                width          : 10%;
                margin         : 20px 16px 0 0;
                background     : url("../images/i-close.png");
                background-size: 100% 100%;
                display        : inline-block;
                width          : 16px;
                height         : 16px;
            }
        }

        .form {
            padding   : 16px 8px;
            text-align: center;

            &-item {
                display        : flex;
                justify-content: flex-start;
                margin         : 0 16px;
                padding        : 16px 0;
                border-bottom  : 1px solid #D9D9D9;

                &__left {
                    display        : flex;
                    justify-content: flex-start;
                    align-items    : center;
                }

                .inpt {
                    margin-left: 8px;
                    border     : none;
                    font-size  : 14px;
                }

                .i-b-phone {
                    background     : url("../images/i-b-phone.png");
                    background-size: 100% 100%;
                    display        : inline-block;
                    width          : 18px;
                    height         : 24px;
                }

                .i-b-code {
                    background     : url("../images/i-b-code.png");
                    background-size: 100% 100%;
                    display        : inline-block;
                    width          : 18px;
                    height         : 24px;
                }

                .i-b-msg {
                    background     : url("../images/i-b-msg.png");
                    background-size: 100% 100%;
                    display        : inline-block;
                    width          : 18px;
                    height         : 24px;
                }

                .btn-send {
                    background-color: #fff;
                    border          : 1px solid #E01212;
                    font-size       : 13px;
                    padding         : 5px 5px;
                    color           : #E01212;
                    border-radius   : 5px;
                    width           : 48%;
                }
            }
            .err-message {
                text-align: left;
                color: #E01212;
                padding: 5px 16px;
                font-size: 14px;
            }

            .tips {
                text-align: left;
                color: #E01212;
                padding: 12px 16px 5px;
                font-size: 14px;
            }

            .btn-binding {
                margin-top      : 16px;
                background-color: #E01212;
                border          : 1px solid #E01212;
                width           : 80%;
                color           : #fff;
                padding         : 5px 0;
                border-radius   : 5px;
                margin-bottom   : 32px;
            }
        }

        &-footer {
            padding   : 24px 10px;
            text-align: center;

            .btn-cancel {
                width           : 42.5%;
                padding         : 8px 0;
                background-color: #fff;
                border          : 1px solid #B4B3B3;
                border-radius   : 5px;
            }

            .btn-submit {
                width           : 42.5%;
                padding         : 8px 0;
                background-color: #DE3032;
                border          : 1px solid #DE3032;
                color           : #fff;
                border-radius   : 5px;
                margin-left     : 16px;
            }
        }
    }
}

.show-box-overlay {
    position        : fixed;
    top             : 0;
    left            : 0;
    width           : 100%;
    height          : 100%;
    background-color: rgba(0, 0, 0, .7);
    z-index: 1500;
}

.clear {
    clear: both;        
}
.w-30 {
    width: 30%!important; 
}

.half {
    width: 50%
}

.h-p-80 {
    width: 80%
}